

/* First created by JCasGen Wed Mar 12 13:34:34 CET 2014 */
package de.unidue.langtech.teaching.pp.type;

import org.apache.uima.jcas.JCas; 
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;
import org.apache.uima.jcas.cas.StringList;
import org.apache.uima.jcas.tcas.Annotation;
import org.apache.uima.jcas.cas.StringArray;


/** 
 * Updated by JCasGen Fri Mar 14 15:58:37 CET 2014
 * XML source: C:/Users/Chrissi/workspace/gallinger/src/main/resources/desc/type/LanguageType.xml
 * @generated */
public class Phrase extends Annotation {
  /** @generated
   * @ordered 
   */
  @SuppressWarnings ("hiding")
  public final static int typeIndexID = JCasRegistry.register(Phrase.class);
  /** @generated
   * @ordered 
   */
  @SuppressWarnings ("hiding")
  public final static int type = typeIndexID;
  /** @generated  */
  @Override
  public              int getTypeIndexID() {return typeIndexID;}
 
  /** Never called.  Disable default constructor
   * @generated */
  protected Phrase() {/* intentionally empty block */}
    
  /** Internal - constructor used by generator 
   * @generated */
  public Phrase(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }
  
  /** @generated */
  public Phrase(JCas jcas) {
    super(jcas);
    readObject();   
  } 

  /** @generated */  
  public Phrase(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }   

  /** <!-- begin-user-doc -->
    * Write your own initialization here
    * <!-- end-user-doc -->
  @generated modifiable */
  private void readObject() {/*default - does nothing empty block */}
     
 
    
  //*--------------*
  //* Feature: Phrase

  /** getter for Phrase - gets 
   * @generated */
  public String getPhrase() {
    if (Phrase_Type.featOkTst && ((Phrase_Type)jcasType).casFeat_Phrase == null)
      jcasType.jcas.throwFeatMissing("Phrase", "de.unidue.langtech.teaching.pp.type.Phrase");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Phrase_Type)jcasType).casFeatCode_Phrase);}
    
  /** setter for Phrase - sets  
   * @generated */
  public void setPhrase(String v) {
    if (Phrase_Type.featOkTst && ((Phrase_Type)jcasType).casFeat_Phrase == null)
      jcasType.jcas.throwFeatMissing("Phrase", "de.unidue.langtech.teaching.pp.type.Phrase");
    jcasType.ll_cas.ll_setStringValue(addr, ((Phrase_Type)jcasType).casFeatCode_Phrase, v);}    
   
    
  //*--------------*
  //* Feature: RightAlternative

  /** getter for RightAlternative - gets 
   * @generated */
  public String getRightAlternative() {
    if (Phrase_Type.featOkTst && ((Phrase_Type)jcasType).casFeat_RightAlternative == null)
      jcasType.jcas.throwFeatMissing("RightAlternative", "de.unidue.langtech.teaching.pp.type.Phrase");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Phrase_Type)jcasType).casFeatCode_RightAlternative);}
    
  /** setter for RightAlternative - sets  
   * @generated */
  public void setRightAlternative(String v) {
    if (Phrase_Type.featOkTst && ((Phrase_Type)jcasType).casFeat_RightAlternative == null)
      jcasType.jcas.throwFeatMissing("RightAlternative", "de.unidue.langtech.teaching.pp.type.Phrase");
    jcasType.ll_cas.ll_setStringValue(addr, ((Phrase_Type)jcasType).casFeatCode_RightAlternative, v);}    
  }

    